import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'//自己创建的页面
import Map from '../views/Map.vue'//自己创建的页面


const routerHistory = createWebHistory()

const router = createRouter({
    history: routerHistory,
    routes: [
        {
            path: '/',
            component: Home,
            children:[{
                path: '/newStyle',
                component: Map
            },]
        },

    ]
})


export default router

